package exp3;

import java.util.Scanner;

public class Exp3_2 {
	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		System.out.println("请输入整数：");
		long n = s.nextLong();
		while(n > 0) {
			System.out.print(n%10);
			n/=10;
		}
	}
}
